package com.Hwadee.vod;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.vod.model.v20170321.DeleteVideoRequest;
import com.Hwadee.servicebase.exceptionHandler.GuliException;
import com.Hwadee.vod.utils.InitVodClient;

public class delete {
    public static void main(String[] args) {
        try {
            //初始化对象
            DefaultAcsClient client =
                    InitVodClient.initVodClient("LTAI5tNoFADmWRjCdkA1MzR4", "ONl4GnJzGdrFC23VMqGsYB9uLyH5DI");
            //创建删除视频的request对象
            DeleteVideoRequest request = new DeleteVideoRequest();
            //向request对象中设置视频id
            request.setVideoIds("57a053d6beff42e1866fa97d7144f43a");
            //调用初始化对象进行删除
            client.getAcsResponse(request);

        }catch (Exception e) {
            e.printStackTrace();
            throw new GuliException(20001, "删除小节视频失败!");
        }
    }
}
